package com.mindata.blockchain.core.manager;

import com.mindata.blockchain.core.model.PayEntity;
import com.mindata.blockchain.core.repository.PayRepository;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author 王鹏
 */
@Component
public class PayManager {
    @Resource
    private PayRepository payRepository;

    public PayEntity findByOrderId(String orderId){
        return payRepository.findByOrderId(orderId);
    }


    public List<PayEntity> findAll(){
        return payRepository.findAll();
    }
}
